package com.github.dice.service;

import com.github.dice.entity.Player;
import com.github.dice.entity.RoomAndPlayerMapping;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.annotation.Nonnull;
import java.util.List;

public interface IRoomAndPlayerMappingService extends IService<RoomAndPlayerMapping> {
    RoomAndPlayerMapping addRoomAndPlayerMapping(RoomAndPlayerMapping roomAndPlayerMapping);

    RoomAndPlayerMapping getRoomAndPlayerMapping(@Nonnull String roomNumber, @Nonnull String playerName);

    List<Player> getRoomAndPlayerMappingListByRoomNumber(@Nonnull String roomNumber);

    void delPlayerMappingByRoom(String roomNumber);
}
